package com.meida.module.bus.provider.handler;

import com.meida.common.base.entity.EntityMap;
import com.meida.common.mybatis.interceptor.PageInterceptor;
import com.meida.common.mybatis.model.PageParams;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.module.user.client.entity.AppSchool;
import org.springframework.stereotype.Component;

/**
 * 后台学校列表
 */
@Component
public class AppSchoolPageListHandler implements PageInterceptor<AppSchool> {


    @Override
    public void prepare(CriteriaQuery<AppSchool> cq, PageParams pageParams, EntityMap params) {
        cq.clear();
        cq.select(AppSchool.class, "schoolId", "schoolName", "schoolLogo", "schoolAbridge", "state", "fullLetter", "firstLetter", "emailSuffix", "isOpen", "createTime");
        cq.like(AppSchool.class, "schoolName");
    }


}
